//
//  ZYHouse.m
//  YiLin
//
//  Created by Zyark on 2018/6/1.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import "ZYHouse.h"

@implementation ZYHouse
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"houseId" : @"id",
             @"address" : @"address",
             @"isManage" : @"isManage",
             @"name" : @"name",
             @"houseImageUrl" : @"header",
             @"state" :@"state",
             @"userIn" : @"userIn"
             };
}
-(NSString *)statusStr{
    if(_state == 1){
        _statusStr = [[ZYChangeLanguage sharedZYChangeLanguage] getStringByKey:LC_HOUSE_STATUS_ON];
    }else{
        _statusStr = [[ZYChangeLanguage sharedZYChangeLanguage] getStringByKey:LC_HOUSE_STATUS_OFF];
    }
    return _statusStr;
}

@end
